package mygang.model;

/**
 *
 * @author Volodymyr Lavrynovych <volodya.lavrynovych@gmail.com>
 * date: 15/12/2012
 */
public class Option extends BaseModel {
    
    private String value;
    private String text;
    private boolean selected = false;

    public Option(String value, String text){
        this.value = value;
        this.text = text;
    }
    
    public Option(long value, String text){
        this.value = Long.toString(value);
        this.text = text;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "Option{" + "value=" + value + ", text=" + text + '}';
    }
}